﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<KLS.PPDS.Web.Models.CompanyViewModel>" %>
<%@ Import Namespace="KLS.PPDS.Resources" %>
<%@ Import Namespace="KLS.PPDS.Utility.Html" %>
<%@ Import Namespace="MvcContrib.UI.Grid" %>


<% Html.Grid(Model.CompanyList).Columns(column=>
                                              {
                                                  column.For(c => c.Id).Named(CommonString.Id);
                                                  column.For(c => c.CompanyName).Named(CommonString.Name).Encode(false);
                                                  //column.For(c => Html.TextBox("Edit", "Edit", new { @type = "button", @onclick = string.Format("AjaxEditCallWithFormData('company/EditCompany?companyId={0}')", c.Id) })).Named(CommonString.Edit);
                                                  //column.For(c => Html.TextBox("Delete", "Delete", new { @type = "button", @onclick = string.Format("AjaxDeleteCallWithFilter('company/DeleteCompany?companyId={0}')", c.Id) })).Named(CommonString.Delete);

                                              }).RowAttributes(c => new Dictionary<string, object> { { "onClick", string.Format("AjaxEditCallWithFormData('company/EditCompany?companyId={0}')", c.Item.Id) } }).Render(); %>